package com.daylightrobbery.server.packet.game.house;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class BuyHousePacket implements RoomDataPacket {
    public static int type = 50001;
    public String uid;
    public int roomId;
    public int pathIndex ;
    public int cost ;


    @Override
    public DataPacket process() {
        return this;
    }

    public String getUid() {
        return uid;
    }

    public BuyHousePacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public BuyHousePacket setRoomId(int roomId) {
        this.roomId = roomId;
        return this;
    }

    public int getPathIndex() {
        return pathIndex;
    }

    public BuyHousePacket setPathIndex(int pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public int getCost() {
        return cost;
    }

    public BuyHousePacket setCost(int cost) {
        this.cost = cost;
        return this;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }
}
